import java.util.Vector;
import java.math.BigInteger;
import java.security.Key;

import javax.crypto.spec.DHParameterSpec;

/***********************************************************
* File:	Message.java
*
* @author 		Alfred Jayaprakash
*
* @description 	Message object which is passed btwn clients
*				and server.
*
***********************************************************/

public class Message implements java.io.Serializable
{
	public int 	  			_header;
	public String 			_username;				// login adressata
	public String 			_destination;			// login odbiorcy
	public String 			_message;
	public String 			_host;					// adres IP z ktorego wysylana
	public User 			_user;
	public Vector 			userlist;
	public String 			_data;
	public BigInteger		_dh_P;					// zmienne okreslajace parametry P, G i L algorytmu D-H
	public BigInteger		_dh_G;
	public int 				_dh_L;
	public Key 				_senderPublicKey;				// Klucz publiczny nadawcy


	public Message()
	{
		//EMPTY MESSAGE
	}

	public Message(int header)
	{
		_header = header;
	}

	public Message(int header,String message)
	{
		_header = header;
		_message=message;
	}

	public String getMessage()
	{
		return _message;
	}
}